package com.dmatek.uwb.xml.dom.bean;

import com.dmatek.uwb.xml.dom.annotations.AttributeName;

/***
 * 坐标讯息
 * @author zhangfu
 * @data 2019年6月12日 下午5:48:48
 * @Description
 */
public class Point implements DomElement{
	public final static String DOM_NAME = "Point";
	@AttributeName("x")
	private double x = 0;
	@AttributeName("y")
	private double y = 0;
	public Point() {
		super();
	}
	public Point(double x, double y) {
		super();
		this.x = x;
		this.y = y;
	}
	

	public double getX() {
		return x;
	}

	public void setX(double x) {
		this.x = x;
	}

	public double getY() {
		return y;
	}

	public void setY(double y) {
		this.y = y;
	}

	@Override
	public String getDomName() {
		// TODO Auto-generated method stub
		return DOM_NAME;
	}
	@Override
	public String toString() {
		return "Point [x=" + x + ", y=" + y + "]";
	}
}
